﻿using System;
using System.Collections.Generic;
using NewLife.Xml;

namespace GitPuller
{
    [XmlConfigFile("Config/GitPuller.config")]
    internal class GitPullerConfig : XmlConfig<GitPullerConfig>
    {
        public string Root { get; set; }
        public List<String> Ignore { get; set; } = new List<string>();

        protected override void OnNew()
        {
            base.OnNew();
            Root = AppDomain.CurrentDomain.BaseDirectory;
            Ignore = new List<string>
            {
                "@eaDir",
                "node_modules"
            };
        }
    }
}